<?php

use Illuminate\Database\Seeder;
use Carbon\Carbon;
use Example\Constants\CodeMessageConstant;

class AccsessRightSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        $now = Carbon::now();
        //填充广告后台前端使用的大权限账户
        $data = [
            'name' => 'admin_route',
            'remark' => '超级管理员',
            'business_id' => -1,
            'status' => CodeMessageConstant::OPEN,
            'public_key' => '272ff441977ec4a2dcfea27adf9d67dd',
            'private_key' => '694f46b156d48fa5e4f91380061308f0',
            'is_max_permissions' => CodeMessageConstant::OPEN,
            'created_at' => $now,
            'updated_at' => $now
        ];

        \Example\Models\AccessRight::create($data);
    }
}
